<#-- 发评论标签-->
<#macro push applicationId>
					<div class="comment">
						<div class="comtitle">
							<img src="${base}/images/comment.gif" />
							<input name="" type="button" class="sm" value="表 情" onclick="openFaceDialog('tangleArea')"/>
						</div>
						<div class="clear"></div>
						<div class="comsend">
							<textarea name="" id="mode_content" class="t" style="width:470px; height:160px; float:left;"></textarea>
							<span>限300字符</span>
							<input name="" type="button" class="sm" value="发 送" onClick="pushComment(${(applicationId?c)!})"/>
							<p></p>
						</div>
					</div>
					
					<script type="text/javascript" src="${base}/scripts/common/face.js" language="javascript"></script>
					<#include "/WEB-INF/content/include/user/pop_face.ftl">
					<script type="text/javascript" src="${statics}/scripts/dialog/dialog.js" language="javascript"></script>
					<link rel="stylesheet" type="text/css" media="screen" href="${statics}/scripts/dialog/dialog.css" />
					
<script>
function pushComment(applicationId){
    $.ajax({
        type: "post",
        dataType: "json",
        url: '${base}' + "/tag/comment!push?time=" + new Date().getTime(),
        async: false,
        data: {
            "applicationId": applicationId,
            "content": $("#mode_content").html()
        },
        success: function(ok){
        	if(ok=="1"){
				alert("评论成功");
				window.location.reload();
			}else{
				alert("请先登录");
			}
        }
    });
}
</script>
</#macro>